package com.junjiao.util.java;

import java.io.UnsupportedEncodingException;

public class ZhuanMa {
	public static void main(String[] args) {
		try {
			// System.out.println("中文1"); // 1
			// System.out.println("中文2".getBytes()); // 2
			// System.out.println("中文3".getBytes("GB2312"));
			System.out.println("上传图片的类型必须是(bmp,png,gif,jpeg,jpg) "
					.getBytes("unicode")); // 4
			// System.out.println(new String("中文5".getBytes())); // 5
			// System.out.println(new String("中文6".getBytes(), "GB2312")); // 6
			// System.out.println(new String("中文7".getBytes(), "ISO8859_1")); //
			// 7
			// System.out.println(new String("中文8".getBytes("GB2312")));// 8
			// System.out.println(new String("中文9".getBytes("GB2312"),
			// "GB2312")); // 9
			// System.out.println(new String("中文10".getBytes("GB2312"),
			// "ISO8859_1")); // 10
			// System.out.println(new String("中文11".getBytes("ISO8859_1"))); //
			// 11
			// System.out.println(new String("中文12".getBytes("ISO8859_1"),
			// "GB2312")); // 12
			System.out.println(new String("上传图片的类型必须是(bmp,png,gif,jpeg,jpg) "
					.getBytes("utf-8"), "unicode"));
			new String();
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} // 3
	}
}
